<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	<ui:composition >
		<ui:param name="idTag" value="#{id}" />
		<ui:param name="labelTag" value="#{label}" />
		<ui:param name="valueTag" value="#{value}" />
		<ui:param name="requiredTag" value="#{required}" />
		<ui:param name="includeTimeTag" value="#{includeTime}"></ui:param>

		<p:outputLabel value="#{labelTag}:" for="#{idTag}" style="float:right;"/>
		<p:calendar value="#{valueTag}" id="#{idTag}" yearRange="c-100" pattern="dd/MM/yyyy"
			size="30" autocomplete="off" required="#{requiredTag}" navigator="true"
			readonlyInput="true">
			<c:if test="${includeTimeTag}">
				<f:attribute name="pattern" value="dd/MM/yyyy HH:mm"/>
			</c:if>
		</p:calendar>
		<p:message for="#{idTag}"  display="icon"/>
	</ui:composition>
</html>